/* 全局样式与变量定义 */
:root {
    --primary-color: #39c5bb;       /* 主色调：青蓝色 */
    --primary-dark: #2ea79c;        /* 主色深色 */
    --primary-light: #5fd8cd;       /* 主色浅色 */
    --secondary-color: #4a4a4a;     /* 辅助色：深灰色 */
    --background-color: #f9fcfd;    /* 背景色 */
    --card-bg: #ffffff;             /* 卡片背景 */
    --text-color: #333333;          /* 文本主色 */
    --border-color: #e0e8e7;        /* 边框色 */
    --success-color: #28a745;       /* 成功色 */
    --error-color: #dc3545;         /* 错误色 */
    --hover-bg: #f0f9f8;            /* 悬停背景 */
}

header {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

header div div {
  display: flex;
  align-items: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: 
        linear-gradient(120deg, #e0f7fa 0%, #b2ebf2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}
p {
    color:#dc3545
}
.container {
    max-width: 900px;
    width: 100%;
}


/* 标题样式 */
h1, h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}

h1 {
    font-size: 2.2rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(57, 197, 187, 0.2);
}

h2 {
    font-size: 1.7rem;
    text-shadow: 0 1px 2px rgba(57, 197, 187, 0.15);
}
h3 {
    color: red;
}

/* 表单容器样式 */
.form-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 35px;
    max-width: 450px;
    width: 100%;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(57, 197, 187, 0.15);
}


/* 表单基础样式 */
form {
    width: 100%;
}

form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.2s ease;
}

form label:hover {
    color: var(--primary-dark);
}

form input[type="text"],
form input[type="password"],
form input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

form input[type="text"]:focus,
form input[type="password"]:focus,
form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(57, 197, 187, 0.25);
}


/* 按钮样式 */
form input[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

form input[type="submit"]:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(57, 197, 187, 0.3);
}

form input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(57, 197, 187, 0.2);
}


/* 链接样式 */
.help-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
    text-align: center;
}

.help-links a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.help-links a:hover {
    background-color: rgba(57, 197, 187, 0.1);
    color: var(--primary-dark);
    text-decoration: none;
}


/* 状态提示样式 */
.status-message {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: center;
}

.success-message {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}


/* 表格样式（重置密码页面） */
.reset-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.reset-table th, 
.reset-table td {
    padding: 14px 18px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.reset-table th {
    background-color: rgba(57, 197, 187, 0.07);
    color: var(--primary-color);
    font-weight: 600;
}

.reset-table tr {
    transition: background-color 0.2s ease;
}

.reset-table tr:hover {
    background-color: var(--hover-bg);
}


/* 响应式适配 */
@media (max-width: 500px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .form-card {
        padding: 25px;
    }
    
    form input[type="text"],
    form input[type="password"],
    form input[type="email"],
    form input[type="submit"] {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}
.tp-button {
    background-color: #39c5bb;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 16px;
    margin: 20px 0;
}

.tp-button:hover {
    background-color: #2aa39a;
}